<#include "header.ftl" />
<#setting classic_compatible=true>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>User List</title>
    <link rel="stylesheet" href="${SERVER_SIDE_CONTEXT}/statics/css/data_mart.css"/>
    <link rel="stylesheet" href="${SERVER_SIDE_CONTEXT}/statics/font-awesome/css/font-awesome.min.css"/>
    <script src="${SERVER_SIDE_CONTEXT}/statics/js/jquery-1.11.1.js"></script>
    <style type="text/css">
        <!--
        .STYLE1 {
            font-family: Arial, Helvetica, sans-serif;
            font-weight: bold;
            font-size: 36px;
            color: #FF0000;
        }

        .STYLE13 {
            font-size: 24
        }

        .STYLE15 {
            font-family: Arial, Helvetica, sans-serif;
            font-size: 24px;
        }

        -->
    </style>
</head>

<body>
<div align="center"><span class="STYLE1">用户列表</span></div>
<div style="text-align: center;">
    <div style="margin: 50px auto; width: 500px">
        <table width="500" height="200" border="1" cellpadding="0" cellspacing="0">
            <tr>
                <th width="160" height="65" align="center" valign="middle"><span class="STYLE15">用户名</span></th>
                <th width="160" height="65" align="center" valign="middle"><span class="STYLE15">出生日期</span>
                <th width="160" height="65" align="center" valign="middle"><span class="STYLE15">性别</span>
                <th width="300" height="65" align="center" valign="middle"><span class="STYLE15">家庭住址</span>
                <th width="300" height="65" align="center" valign="middle"><span class="STYLE15">角色</span></th>
            </tr>
            <#list users as user>
                <tr>
                    <td width="160" height="65" align="center" valign="middle"><span
                                class="STYLE15">${user.username}</span></td>
                    <td width="320" height="65" align="center" valign="middle"><span
                                class="STYLE15">${user.birthday?date}</span></td>
                    <td width="160" height="65" align="center" valign="middle"><span
                                class="STYLE15"><#if user.sex == "1"> 男 </#if><#if user.sex == "0"> 女 </#if><#if user.sex == "2"> 保密 </#if></span>
                    </td>
                    <td width="300" height="65" align="center" valign="middle"><span
                                class="STYLE15">${user.address}</span></td>
                    <td width="300" height="65" align="center" valign="middle"><span
                                class="STYLE15"><a
                                    href="${SERVER_SIDE_CONTEXT}/userRoleMgmt/modifyPre/${user.username}">修改</a> </span></td>
                </tr>
            </#list>
        </table>
    </div>
</div>
</body>
</html>